<template>
  <div>
    <h1>测试专用</h1>
    <hr>
    <component :is="current" v-bind="FangFa">北京的秋天</component>
    <br><br>
    <button @click="Fn">点击</button>
  </div>
</template>

<script>
import myinfo from './myinfo.vue'
export default {
  name: 'MyTest',
  components: { myinfo },
  data() {
    return {
      FangFa: {
        href: 'http://baidu.com',
        class: 'active'
        // target: '_blank'
      },
      current: 'a'
    }
  },
  methods: {
    Fn() {
      this.current = 'myinfo'
    }
  }

}
</script>

<style>

</style>
